﻿<%@ Page Title="修改密码" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

  <style type="text/css">

    aside{
          height:500px;width:50%;
          float:right;padding-top:30px;margin-top:30px;
          border-style:solid; border-width:2px; border-color:darkgrey;border-radius:10px;
          background-color:aliceblue;
    }

    .FirstSelect{
            width:95%;height:40px;border-style:solid; border-width:2px;
            border-bottom-color:darkgrey;border-top-color:darkgrey;
            border-left-color:#FFFFFF;border-right-color:#FFFFFF;
            text-align:center;line-height:40px;
    }


    .select{ 
            width:95%;height:40px;border-style:solid; border-width:2px;
            border-bottom-color:darkgrey;border-top-color:#FFFFFF;
            border-left-color:#FFFFFF;border-right-color:#FFFFFF;
            text-align:center;line-height:40px;
    }

    a{text-decoration:none;color: #000000;}

   </style>


    <aside >
     <nav >
         <div class="FirstSelect">
             <a href="PersonalCenter.aspx" >基本信息</a>
         </div>

         <div class="select">
             <a href="ChangePassword.aspx" >修改密码</a>
         </div>
          
         <div class="select">
             <a href="ChangeInformation.aspx" >我发布的</a>
         </div >
         
         <div class="select">
            <a href="Order1.aspx" >我的订单</a>
         </div>
         
         <div class="select">
            <a href="BrowsingFootprints.aspx" >浏览足迹</a>
         </div>
         
     </nav>
    </aside>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <style type="text/css">
     
    .panel{
           border-style:solid; border-width:3px; border-color:darkgrey;
           width:80%;height:500px;padding-top:30px;padding-left:20px;
           margin-top:30px;
           text-align:center;
    }
    
    .Table{
     margin:0 auto
    }

    .Table_tr{
      height:50px;
    }

    .td1{
     text-align:right;
    }

    </style>

    <div class="panel">
     
     <table class="Table">

       <tr class="Table_tr">
         <td class="td1">原密码：</td>
         <td>
             <asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password"></asp:TextBox>
         </td>
         <td>
             <asp:RequiredFieldValidator ControlToValidate="txtOldPwd" Display="Dynamic"
                        ID="rfvOldPwd" runat="server" ErrorMessage="不能为空">
              </asp:RequiredFieldValidator>
         </td>
       </tr>

        <tr class="Table_tr">
         <td class="td1">新密码：</td>
         <td>
             <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
         </td>
         <td >
             <asp:RequiredFieldValidator ControlToValidate="txtPwd" Display="Dynamic"
                   ID="rfvPwd" runat="server" ErrorMessage="不能为空">
             </asp:RequiredFieldValidator>
         </td>
       </tr>

        <tr class="Table_tr">
         <td class="td1">确认新密码：</td>
         <td>
             <asp:TextBox ID="txtPwdAgain" runat="server" TextMode="Password"></asp:TextBox>
         </td>
         <td>
             <asp:CompareValidator ControlToValidate="txtPwdAgain" ControlToCompare="txtPwd"
               Display="Dynamic"  ID="cvPwd" runat="server" ErrorMessage="2次密码不一致">
              </asp:CompareValidator>
         </td>
       </tr>

        <tr class="Table_tr">
         <td></td>
         <td style="text-align:center">
             <asp:Label ID="lblMsg" runat="server" Text="" ForeColor="#3399ff"></asp:Label>
         </td>
         <td>
             <asp:Button ID="SaveButton" runat="server" Text="确认修改"
               style="background-color:aliceblue;border-color:white"  OnClick="SaveButton_Click" />
        </tr>

     </table>

    </div>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>

